<template>
    <web class="map" :src="url"></web>
</template>
<script>
import { webUrl } from '../../config'
import { getCache } from '../../util/storageUtils'
import { CTCE_USER_INFO } from '../../config/storageTypes'
import qs from 'qs'
const modal = weex.requireModule('modal')
export default {
    name: 'map',
    data () {
        return {
            url: ''
        }
    },
    created () {
        getCache(CTCE_USER_INFO).then(res => {
            let param = qs.stringify(JSON.parse(res))
            param += "&times=" + Date.parse(new Date())/1000
            this.url = `${webUrl}projectDisMap.html?${param}`
            // modal.alert({
            //     message: param
            // })
        })
    }
}
</script>
<style scoped>
.map{
    flex: 1;
}
</style>
